package com.education.common.component;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 多租户配置属性类
 *
 * @author hege
 * @Date 2023-08-25
 *
 */
@Data
@Component
@ConfigurationProperties(prefix = "mybatis-plus.tenant")
public class TenantProperties  {
    /**
     * 是否启用多租户插件
     */
    private boolean enabled = true;

    /**
     * 需要忽略的多租户的表
     */
    private List<String> ignoreTables = new ArrayList<>();

    /**
     * 租户ID字段名称
     */
    private String column = "tenant_id";




}
